import request from '@/utils/request'

export function listTransport(params) {
  return request({
    url: '/admin/api/transport/list',
    method: 'get',
    params
  })
}

export function listPageTransport(params) {
  return request({
    url: '/admin/api/transport/page',
    method: 'get',
    params
  })
}

export function getTransport(id) {
  return request({
    url: '/admin/api/transport/info/' + id,
    method: 'get'
  })
}

export function addTransport(data) {
  return request({
    url: '/admin/api/transport/add',
    method: 'post',
    data
  })
}

export function updateTransport(data) {
  return request({
    url: '/admin/api/transport/update',
    method: 'put',
    data
  })
}

export function delTransport(data) {
  return request({
    url: '/admin/api/transport/delete',
    method: 'delete',
    data
  })
}
